﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="News_Add.aspx.cs" MasterPageFile="/Admin/MasterPage.master"Inherits="Admin_Form_News_Add" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" ID="content" runat="server">
        
    
    <center>
     <telerik:RadWindowManager runat="server" ID="window1">
        <Windows>
             <telerik:RadWindow runat="server" Width="400px" Height="400px" VisibleStatusbar="false"
                NavigateUrl="FileManager.aspx" ID="ExplorerWindow" Modal="true" >
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>       </center>
 <fieldset>
    <legend><h3 style="color:Blue">QUẢN TRỊ BÀI VIẾT CHIA SẺ</h3></legend>  
        <input type="hidden" id="txtNewsID" runat="server" />
        <input type="hidden" id="txtCategoryPageID" runat="server" />
     <div style="text-align:center; font-size:larger">
         <asp:Label runat="server" ID="lblMessage"> </asp:Label></div>
        <table style="text-align:left; width:800px ">
            <tr>
                <td style="width:140">Nhóm Tin Tức</td>
                <td>
                <telerik:RadComboBox AppendDataBoundItems="true" CssClass="AdminList" runat="server" DataTextField="FunctionPageName" DataValueField="FunctionPageID" ID="cboCategoryPage">
                    <Items>
                        <telerik:RadComboBoxItem Text="Tin tức" Value="139" />
                        <telerik:RadComboBoxItem Text="Chia sẻ" Value="140" />
                        <telerik:RadComboBoxItem Text="Dịch vụ" Value="155" />
                    </Items>
                </telerik:RadComboBox></td>
            </tr>
                    
            <tr>
                <td style="width:140">Tiêu Đề</td>
                <td><asp:TextBox CssClass="AdminTextbox" runat="server" ID="txtNewsTitle"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator runat="server" ID="require1" ControlToValidate="txtNewsTitle"></asp:RequiredFieldValidator></td>
            </tr>
            
            
            <tr>
                <td style="width:140">Tóm tắt</td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" TextMode="MultiLine" Rows="8" ID="txtNewsAbstract" runat="server"></asp:TextBox>
                </td>
                <td>&nbsp;</td>
            </tr>
            
            <tr>
                   <td style="width:140">Nội dung</td>
                    <td>
                        <telerik:RadEditor ID="txtNewsContent" runat="server" >
                            <ImageManager UploadPaths="/Upload/" ViewPaths="/Upload/" DeletePaths="/Upload/" />
                            <DocumentManager UploadPaths="/Upload/" ViewPaths="/Upload/" DeletePaths="/Upload/" />
                            <FlashManager UploadPaths="/Upload/" ViewPaths="/Upload/" DeletePaths="/Upload/" />
                            <MediaManager UploadPaths="/Upload/" ViewPaths="/Upload/" DeletePaths="/Upload/" />
                        </telerik:RadEditor>
                    </td>
                    <td></td>
            </tr>
            
            <tr>
                <td style="width:140">Ảnh</td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtNewsImage" runat="server"></asp:TextBox>
                    <asp:Button ID="Button1" OnClientClick="openRadWindow('FileManager.aspx?control=txtNewsImage','ExplorerWindow'); return false;" Text="Open... " runat="server" />
                </td>
                <td></td>
            </tr>
            
             <tr>
                <td style="width:140">
                    Nguồn
                </td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtNewsSource" runat="server"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>
            
            <tr>
                <td style="width:140">
                    Meta Keyword
                </td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtMetaKeyword" runat="server"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>
            
            <tr>
                <td style="width:140">
                    Meta Description
                </td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtMetaDescription" runat="server"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>
            
            <tr>
               <td style="width:140">
                    Thứ Tự Hiển Thị
                </td>
                <td>
                    <telerik:RadNumericTextBox ID="txtViewOrder" runat="server">
                    </telerik:RadNumericTextBox>
                </td>
                <td>
                <asp:RequiredFieldValidator ControlToValidate="txtViewOrder" ID="RequiredFieldValidator2" runat="server" ErrorMessage="Bạn Phải Nhập Thứ Tự Hiển Thị"></asp:RequiredFieldValidator>
                </td>
            </tr>
            
             <tr>
                <td colspan="3">
                    <asp:CheckBox Text="Trang Mới" ID="chkIsNew" runat="server" /> &nbsp;&nbsp;
                    <asp:CheckBox Text="Trang Hot" ID="chkIsHot" runat="server" Visible="false" /> &nbsp;&nbsp;
                    <asp:CheckBox Text="Trang Nổi Bật" ID="chkIsTypical" runat="server" Visible="false"/> &nbsp;&nbsp;
                </td>
            </tr>
        
            <tr>
                <td colspan="3" align="center">
                    <asp:Button CssClass="AdminSaveButton" runat="server" ID="btnCreate" OnClick="btnCreate_Click" Text="Thêm Mới" />
                    <asp:Button CssClass="AdminCancelButton" runat="server" ID="btnReset" OnClick="btnReset_Click" CausesValidation="false" Text="Quay Lại" />            
                </td>
            </tr>
        </table>
    
        
    </fieldset>
</asp:Content>
